package com.lfx.concurrent.interrupted;

/**
 * @author 李逢喜
 * create 2021/7/22
 */
public class InterruptedThread extends Thread{


    @Override
    public void run() {
        while (true){
            boolean interrupted = isInterrupted();
            System.out.println("中断状态:"+interrupted);
        }
    }
}
